home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / share / doc / ttf-sinhala-lklug / README.fonts < prev   
Encoding:
Text File  |  2006-03-13  |  2.0 KB  |  90 lines

  1. Using Fonts in X-Window System
  2. ------------------------------
  3. By Anuradha Ratnaweera
  4.  
  5. Copy all your fonts to a suitable location, typically to
  6. /usr/local/share/fonts.
  7.  
  8.     mkdir -p /usr/local/share/fonts
  9.     cp lklug.ttf /usr/local/share/fonts/
  10.  
  11. X Window System uses two different font systems and the
  12. fonts have to be added to both of them.
  13.  
  14. XFT
  15. ---
  16.  
  17. This is the new system
  18.  
  19. * If you have /etc/fonts/fonts.conf, check if the line
  20.  
  21.     <dir>/usr/local/share/fonts</dir>
  22.  
  23.   exits in the file.  If so, you are done. 
  24.  
  25.   Otherwise, if you have /etc/fonts/local.conf, add the line
  26.  
  27.     <dir>/usr/local/share/fonts</dir>
  28.  
  29.   If local.conf is not there, add it to /etc/fonts/fonts.conf.
  30.  
  31. * See if the font is in X by running
  32.  
  33.     fc-list
  34.  
  35.   and grepping for the relevent font (may be with an -i)
  36.  
  37. * If the font is not found, try running
  38.  
  39.     fc-cache -v -f
  40.  
  41.   as root.
  42.  
  43. * You do NOT have to restart X (good news).
  44.  
  45. X core
  46. ------
  47.  
  48. * Create fonts.scale and fonts.dir files
  49.  
  50.     cd /usr/local/share/fonts/
  51.     /usr/bin/X11/mkfontscale
  52.     /usr/bin/X11/mkfontdir
  53.  
  54.   (If you are running and old XFree86 version, mkfontscale may
  55.   not be available.  Just grab the mkfontscale.c file from
  56.   one of the cvsweb sites and compile it with cc.  However, OTF
  57.   files may not be recognized by old XFree86 systems.)
  58.  
  59. * If you are using a font server, add /usr/local/share/fonts to
  60.   "catalogue" variable in /etc/X11/fs/config, and restart font server.
  61.  
  62.     /etc/init.d/xfs restart
  63.  
  64. * If you are NOT using a font server, add the line
  65.  
  66.     FontPath  "/usr/local/fonts"
  67.  
  68.   to the "Files" section in /etc/X11/xorg.conf (if you are using a
  69.   X server from x.org), or /etc/X11/XF86Config or /etc/X11/XF86Config-4
  70.   (if you are using a xfree86 X server).
  71.  
  72.   Also make sure that the line
  73.  
  74.     Load      "freetype"
  75.  
  76.   is there in the "Module" section.  If not add the line.
  77.  
  78.   Now restart X.
  79.  
  80. * See if the font is available by running
  81.  
  82.     xlsfonts
  83.  
  84.   and grepping for the font name (probably with an -i).
  85.  
  86. Links:
  87. http://www.xfree86.org/current/fonts.html
  88. http://www.tldp.org/HOWTO/FDU/index.html
  89.  
  90.